package com.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("tb_cart")
public class CartItem {
    @TableId(type = IdType.AUTO)
    Integer id;
    Integer uid ;//用户ID
    Integer pid;//产品ID
    Integer number;//数量
    BigDecimal sum;//总价
    @TableField(exist = false)
    Product product;//商品
}